﻿@model DataSharing.Models.Product
@{
    ViewBag.Title = "Detail";
}

<h2>Product Detail</h2>
<img class="col-md-4" src="/images/products/@Model.Image" />
<ul class="col-md-8">
    <li>Id: @Model.Id</li>
    <li>Name: @Model.Name</li>
    <li>UnitPrice: @Model.UnitPrice</li>
    <li>Quantity: @Model.Quantity</li>
    <li>Image: @Model.Image</li>
</ul>

<h3>Hàng đã xem</h3>
<ul>
    @foreach(String id in ViewBag.Views){
        <li><a href="/Product/Detail/@id">@id</a></li>
    }
</ul>